﻿using System.ComponentModel;

namespace SilverlightPlayer
{
    public class ProgressIndicator:INotifyPropertyChanged
    {
        string _elapsedTime;
        public string ElapsedTime
        {
            get
            {
                return _elapsedTime;
            }
            set
            {
                _elapsedTime = value;
                Notify("ElapsedTime");
                
            }
        }
        string _totalTime;
        public string TotalTime
        {
            get 
            {
                return _totalTime;
            }
            set
            {
                _totalTime = value;
                Notify("TotalTime");
            }
        }

        void Notify(string property)
        {
            if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(property));
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
